package com.gict.antifraudback.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName like_record
 */
@TableName(value ="like_record")
@Data
public class LikeRecord extends BaseEntity implements Serializable {


    /**
     * 点赞用户的ID
     */
    private Integer userId;

    /**
     * 用户名称
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 用户头像
     */
    @TableField(exist = false)
    private String userAvatar;

    /**
     * 用户邮箱
     */
    @TableField(exist = false)
    private String userEmail;

    /**
     * 点赞对象类型 (文章或评论)
     */
    private Object targetType;

    /**
     * 0-点赞，1-点踩
     */
    private Integer likeType;

    /**
     * 点赞对象的ID
     */
    private Integer targetId;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}